package com.battery.pojo;

import java.sql.Timestamp;

public class Rule {
    private int rule_id;
    private double unit_price;
    private Timestamp free_time;
    private Timestamp unit_time;
    private double upper_limit;


    public Rule(int rule_id, double unit_price, Timestamp free_time, Timestamp unit_time, double upper_limit) {
        this.rule_id = rule_id;
        this.unit_price = unit_price;
        this.free_time = free_time;
        this.unit_time = unit_time;
        this.upper_limit = upper_limit;
    }
    public Rule(){

    }

    public int getRule_id() {
        return rule_id;
    }

    public void setRule_id(int rule_id) {
        this.rule_id = rule_id;
    }

    public double getUnit_price() {
        return unit_price;
    }

    public void setUnit_price(double unit_price) {
        this.unit_price = unit_price;
    }

    public Timestamp getFree_time() {
        return free_time;
    }

    public void setFree_time(Timestamp free_time) {
        this.free_time = free_time;
    }

    public Timestamp getUnit_time() {
        return unit_time;
    }

    public void setUnit_time(Timestamp unit_time) {
        this.unit_time = unit_time;
    }

    public double getUpper_limit() {
        return upper_limit;
    }

    public void setUpper_limit(double upper_limit) {
        this.upper_limit = upper_limit;
    }

}
